<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<title>充值中心 {$site_name} </title>
	<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
	<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
	{include file="public:head_user" /}
</head>
<body class="body-white">
<div class="wrap">
	{include file="public:nav" /}
	<div id="main-cmf">
		<div class="breadcrumb-wrapper">
			<div class="container">
				<div class="row">
					<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
						<h2 class="title">{:lang('personal center')}</h2>
					</div>
					<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
						<div class="breadcrumbs pull-right">
							<ul>
								<li>{:lang('current location')}:</li>
								<li><a href="__ROOT__/">{:lang('home')}</a></li>
								<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
								<li>账号充值</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="content">
			<div class="container">
				<div class="row">
					<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
						{include file="public:usernav"/}
					</div>
					<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
						<div id="center-content" style="padding:20px">
							<div class="row">
								<form class="form-light form-horizontal" id="runedit" action="{:url('home/Center/runchongzhi')}" method="post">
									<div class="form-group">
										<label class="col-lg-3 col-md-3 col-sm-3 col-xs-2 control-label">账号余额：</label>
										<div class="col-lg-5 col-md-5 col-sm-7 col-xs-9">
											<label class="control-label">{$user_money}</label>
										</div>
									</div>
                                    
                                    <div class="form-group">
										<label class="col-lg-3 col-md-3 col-sm-3 col-xs-2 control-label">充值金额：</label>
										<div class="col-lg-5 col-md-5 col-sm-7 col-xs-9">
											 <input type="text" class="form-control"  onafterpaste="clearnum(this);" onkeyup="clearnum(this);"  id="fee" name="fee" value="" placeholder="输入金额" required>
										</div>
									</div>
                                    
									 
                                     <style type="text/css">
                       .pay-list{}
					   .pay-list a{ border:1px solid #dedede; margin:0 10px 5px 0; display:inline-block; position:relative;width:160px;}
					   .pay-list a i{ position:absolute; right:0; bottom:0}
					   .pay-list a.curr{border:1px solid #F00;}
					   .pay-list a.curr i{width:22px; height:22px; display:block;background:url('{$yf_theme_path}public/payment/images/sys_item_selected.gif') no-repeat; background-size:22px}
                    </style>
                    <div class="form-group">
                    <label class="col-lg-3 col-md-3 col-sm-3 col-xs-2 control-label">充值方式：</label>
										<div class="col-lg-7 col-md-7 col-sm-9 col-xs-9">
                                        
                                        
                     <div class="pay-list"> 
                     
                     <a href="javascript:;" class="curr" data="alipay">
                        <img src="{$yf_theme_path}public/payment/images/alipay.png"> <i></i>
                     </a>
                     <a href="javascript:;" data="wxpayqrcode">
                       <img src="{$yf_theme_path}public/payment/images/wechatpay.png"> <i></i>
                     </a>
                     
                     
                     
                     </div>                        
                      
                      </div>
                   </div>
                                   
                                     
                                     
									<div class="form-group">
										<label class="col-lg-3 col-md-3 col-sm-3 col-xs-2 control-label"></label>
										<div class="col-lg-5 col-md-5 col-sm-7 col-xs-9">
                                            <input id="pay_type" name="pay_type" value="alipay" type="hidden">
											<button class="btn btn-primary" > 充 值 </button>
										</div>
									</div>
                                    
                                    
                                    
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	{include file="public:footer"/}
</div>
{include file="public:scripts"/}
 <script language="javascript">
                             $(function(){
								 $(".pay-list a").click(function(){
							       $(".pay-list a").removeClass('curr');
							       $(this).addClass('curr');
							       $("#pay_type").val($(this).attr('data'));
						         });
							 }) ;
							 
							 function clearnum(obj){
	obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
	obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字而不是
	obj.value = obj.value.replace(/\.{1,}/g,"."); //只保留第一个. 清除多余的
	obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
	obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3'); //只能输入两个小数
}

                             </script> 
<script type="text/javascript" src="__PUBLIC__/others/region.js"></script>
</body>
</html>